home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / msdl / example.lha / example-scenes / sample-room.lha / sample-room.msdl < prev   
Encoding:
Text File  |  1993-11-03  |  7.2 KB  |  716 lines

  1. /* there is no view in this scene at the moment */
  2. /* and also some objects like tv and mirror have */
  3. /* been defined but not instantiated. The room to */
  4. /* give you some idea is completely in positive */
  5. /* world coords and has dimensions of approx */
  6. /* 20x40x20. Happy rendering. Oh and it was */
  7. /* designed in a hurry for a deadline so no */
  8. /* comments about aesthetics or colours thankyou */
  9. /* D. Hutchinson */
  10.  
  11. defprops kakki
  12. drc 0.6 0.7 0.5
  13. end
  14.  
  15. defprops
  16.   wood
  17.   drc 0.7725 0.6863 0.4353
  18. end
  19.  
  20. defprops
  21.   darkwood
  22.   drc 0.6745 0.5373 0.3882
  23. end
  24.  
  25. defprops
  26.   grey
  27.   drc 0.6 0.6 0.6
  28. end
  29.  
  30.  
  31.  
  32. defprops
  33.   carpet1
  34.   drc 0.6 0.6 0.3
  35. end
  36.  
  37. defprops
  38.   carpet2
  39.   drc 0.3 0.6 0.6
  40. end
  41.  
  42. defprops
  43.   cream
  44.   drc 0.9 0.9 0.7
  45. end
  46.  
  47. defprops
  48.   paper1
  49.   drc 0.6 0.6 0.6
  50. end
  51.  
  52. defprops
  53.   paper2
  54.   drc 0.6 0.6 0.6
  55. end
  56.  
  57. defprops
  58.   paper3
  59.   drc 0.6 0.6 0.6
  60. end
  61.  
  62. defprops
  63.   purple
  64.   drc 0.85 0.6 0.5
  65. end
  66.  
  67. defprops
  68.   paper4
  69.   drc 0.6 0.6 0.6
  70. end
  71.  
  72.  
  73. defobj
  74.   unit_box
  75.    box 
  76.       0 0 0
  77.       1.0 1.0 1.0
  78.    end
  79. end
  80.  
  81. defobj
  82.   unit_box2
  83.  
  84.   box
  85.      -0.5 -0.5 -0.5
  86.      0.5 0.5 0.5
  87.   end
  88. end
  89.  
  90. defobj
  91.   unit_sphere
  92.   sphere
  93.   0 0 0 1
  94.   end
  95. end
  96.  
  97.  
  98. polygon
  99. 4
  100. 11 20 14.9999
  101. 12 20 14.9999
  102. 12 24 14.9999
  103. 11 24 14.9999
  104.  
  105. props emission 1.5 1.5 1.5 end
  106.  
  107. end
  108.  
  109. polygon
  110. 4
  111. 11 5 14.9999
  112. 12 5 14.9999
  113. 12 9 14.9999
  114. 11 9 14.9999
  115.  
  116. props emission 1.5 1.5 1.5 end
  117.  
  118.  
  119. end
  120.  
  121.  
  122. defobj morph
  123.  
  124. polyhedron
  125. {
  126. 0 0 0
  127. 0.666 1.332 2.0
  128. 1.332 1.332 2.0
  129. 1.332 0.666 2.0
  130. 0.666 0.666 2.0
  131. 0.708 1.702 1.702
  132. 1.29 1.702 1.702
  133. 1.702 1.29 1.702
  134. 1.702 0.708 1.702
  135. 1.29 0.296 1.702
  136. 0.708 0.296 1.702
  137. 0.296 0.708 1.702
  138. 0.296 1.29 1.702
  139. 0.666 2.0 1.332
  140. 1.332 2.0 1.332
  141. 1.702 1.702 1.29
  142. 2.0 1.332 1.332
  143. 2.0 0.666 1.332
  144. 1.702 0.296 1.29
  145. 1.332 0.0 1.332
  146. 0.666 0.0 1.332
  147. 0.296 0.296 1.29
  148. 0.0 0.666 1.332
  149. 0.0 1.332 1.332
  150. 0.296 1.702 1.29
  151. 0.666 2.0 0.666
  152. 1.332 2.0 0.666
  153. 1.702 1.702 0.708
  154. 2.0 1.332 0.666
  155. 2.0 0.666 0.666
  156. 1.702 0.296 0.708
  157. 1.332 0.0 0.666
  158. 0.666 0.0 0.666
  159. 0.296 0.296 0.708
  160. 0.0 0.666 0.666
  161. 0.0 1.332 0.666
  162. 0.296 1.702 0.708
  163. 0.708 1.702 0.296
  164. 1.29 1.702 0.296
  165. 1.702 1.29 0.296
  166. 1.702 0.708 0.296
  167. 1.29 0.296 0.296
  168. 0.708 0.296 0.296
  169. 0.296 0.708 0.296
  170. 0.296 1.29 0.296
  171. 0.666 1.332 0.0
  172. 1.332 1.332 0.0
  173. 1.332 0.666 0.0
  174. 0.666 0.666 0.0
  175. }
  176. {
  177. [1 2 3 4]
  178. [5 6 2 1]
  179. [6 7 2]
  180. [7 8 3 2]
  181. [8 9 3]
  182. [9 10 4 3]
  183. [10 11 4]
  184. [11 12 1 4]
  185. [12 5 1]
  186. [13 14 6 5]
  187. [14 15 6]
  188. [6 15 7]
  189. [15 16 7]
  190. [16 17 8 7]
  191. [17 18 8]
  192. [18 9 8]
  193. [18 19 9]
  194. [19 20 10 9]
  195. [20 21 10]
  196. [21 11 10]
  197. [21 22 11]
  198. [22 23 12 11]
  199. [23 24 12]
  200. [24 5 12]
  201. [24 13 5]
  202. [25 26 14 13]
  203. [26 27 15 14]
  204. [27 28 16 15]
  205. [28 29 17 16]
  206. [29 30 18 17]
  207. [30 31 19 18]
  208. [31 32 20 19]
  209. [32 33 21 20]
  210. [33 34 22 21]
  211. [34 35 23 22]
  212. [35 36 24 23]
  213. [36 25 13 24]
  214. [25 26 38 37]
  215. [26 27 38]
  216. [38 27 39]
  217. [27 28 39]
  218. [28 29 40 39]
  219. [29 30 40]
  220. [30 41 40]
  221. [30 31 41]
  222. [31 32 42 41]
  223. [32 33 42]
  224. [33 43 42]
  225. [33 34 43]
  226. [34 35 44 43]
  227. [35 36 44]
  228. [36 37 44]
  229. [36 25 37]
  230. [37 38 46 45]
  231. [38 39 46]
  232. [39 40 47 46]
  233. [40 41 47]
  234. [41 42 48 47]
  235. [42 43 48]
  236. [43 44 45 48]
  237. [44 37 45]
  238. [45 46 47 48]
  239. }
  240. instprops purple
  241.  
  242. shift -1 -1 -1
  243. rotate z 0.000001
  244. rotate y 0.000001
  245. rotate x 0.000001
  246.  
  247.  
  248. end
  249. end
  250.  
  251.  
  252. defobj
  253.   sofa
  254.  
  255.   instobj unit_box2
  256.     scale 6 3 1
  257.     instprops purple
  258.   end
  259.  
  260.   instobj unit_box2
  261.     scale 1 3 2
  262.     shift -3.5 0 0.5
  263.     instprops purple
  264.   end
  265.  
  266.   instobj unit_box2
  267.     scale 1 3 2
  268.     shift 3.5 0 0.5
  269.     instprops purple
  270.   end
  271.  
  272.   instobj morph
  273.     scale 1.5 1.5 0.5
  274.     shift -1.5 0 0.8
  275.     instprops purple
  276.   end
  277.  
  278.   instobj morph
  279.     scale 1.5 1.5 0.5
  280.     shift 1.5 0 0.8
  281.     instprops purple
  282.   end
  283.  
  284.   instobj morph
  285.     scale 0.5 1.5 0.5
  286.     shift -3.5 0 1.5
  287.     instprops purple
  288.   end
  289.  
  290.   instobj morph
  291.     scale 0.5 1.5 0.5
  292.     shift 3.5 0 1.5
  293.     instprops purple
  294.   end
  295.  
  296.   instobj morph
  297.     scale 3 0.5 2.5
  298.     rotate x 7
  299.     shift 0 1.7 1.3
  300.     instprops purple
  301.   end
  302.  
  303. end
  304.     
  305.  
  306.  
  307.  
  308.  
  309. defobj steps
  310.  
  311.  
  312. instobj unit_box
  313.   scale 3 3 1
  314.   shift 6 12 0
  315.   instprops darkwood
  316. end
  317.  
  318.  
  319. instobj unit_box
  320.   scale 3 2 1
  321.   shift 6 13 1
  322.   instprops darkwood
  323. end
  324.  
  325.  
  326. instobj unit_box
  327.   scale 3 1 1
  328.   shift 6 14 2
  329.   instprops darkwood
  330. end
  331.  
  332. end
  333.  
  334. defobj 
  335.  
  336. room
  337.  
  338.  
  339. polygon
  340. 4
  341. 0 0 0
  342. 15 0 0
  343. 15 15 0
  344. 0 15 0
  345. instprops carpet2
  346. end
  347.  
  348.  
  349. polygon
  350. 4
  351. 0 15 3
  352. 15 15 3
  353. 15 40 3
  354. 0 40 3
  355. instprops carpet2
  356. end
  357.  
  358.  
  359. polygon
  360. 4
  361. 0 0 15
  362. 15  0 15
  363. 15 40 15
  364. 0 40 15
  365. instprops cream
  366. end
  367.  
  368.  
  369. polygon
  370. 4
  371. 0 0 0
  372. 15 0 0
  373. 15 0 15
  374. 0 0 15
  375. instprops paper1
  376. end
  377.  
  378.  
  379. polygon
  380. 4
  381. 0 40 0
  382. 15 40 0
  383. 15 40 15
  384. 0 40 15
  385. instprops paper2
  386. end
  387.  
  388.  
  389. polygon
  390. 4
  391. 0 0 0
  392. 0 40 0
  393. 0 40 15
  394. 0 0 15
  395. instprops paper3
  396. end
  397.  
  398.  
  399. polygon
  400. 4
  401. 15 0 0
  402. 15 40 0
  403. 15 40 15
  404. 15 0 15
  405. instprops paper4
  406. end
  407.  
  408.  
  409. polygon
  410. 4
  411. 0 15 0
  412. 15 15 0
  413. 15 15 3
  414. 0 15 3
  415. instprops cream
  416. end
  417.  
  418.  
  419.  
  420.  
  421.  
  422. end
  423.  
  424.  
  425. instobj room
  426.   scale 1.5 1 1
  427. end
  428.  
  429. instobj steps
  430.   scale 1.5 1 1
  431. end
  432.  
  433.  
  434.  
  435. defobj    
  436.   chair
  437.   instprops grey
  438.   shift -1 0 0
  439.  
  440.   instobj unit_box    
  441.     scale 2 2 0.15
  442.     shift 0.1 0 1.5
  443.     instprops kakki
  444.   end
  445.  
  446.   instobj unit_box    
  447.     scale 0.1 0.1 3
  448.   end
  449.  
  450.   instobj unit_box    
  451.     scale 0.1 0.1 3
  452.     shift 0 1.9 0
  453.   end
  454.  
  455.   instobj unit_box
  456.     scale 0.1 0.1 1.5
  457.     shift 2 0 0
  458.   end
  459.  
  460.   instobj unit_box
  461.     scale 0.1 0.1 1.5
  462.     shift 2 1.9 0
  463.   end
  464.  
  465.   instobj unit_box    
  466.     scale 0.15 2 0.7
  467.     shift 0.1 0 2.3
  468.     instprops kakki
  469.   end
  470. end
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478. defobj
  479.   table
  480.  
  481.  
  482.   instobj unit_box
  483.   instprops darkwood
  484.     scale 6 7 0.2
  485.     shift 0.5 -1 2
  486.   end
  487.  
  488.   instobj unit_box    
  489.   instprops darkwood
  490.     scale 0.2 0.2 2
  491.     shift 0.6 -0.9 0
  492.   end
  493.  
  494.   instobj unit_box    
  495.   instprops darkwood
  496.     scale 0.2 0.2 2
  497.     shift 0.6 5.7 0
  498.   end
  499.  
  500.   instobj unit_box    
  501.   instprops darkwood
  502.     scale 0.2 0.2 2
  503.     shift 6.2 -0.9 0
  504.   end
  505.  
  506.   instobj unit_box    
  507.   instprops darkwood
  508.     scale 0.2 0.2 2
  509.     shift 6.2 5.7 0
  510.   end
  511. end
  512.  
  513.  
  514. defobj sqpicture
  515.  
  516. instobj unit_box2
  517.    scale 1 0.05 0.05
  518.    shift 0 0 -0.5
  519.    instprops wood
  520. end
  521.  
  522. instobj unit_box2
  523.   scale 1 0.05 0.05
  524.   shift 0 0 0.45
  525.   instprops wood
  526. end
  527.  
  528. instobj unit_box2
  529.   scale 0.05 0.05 1
  530.   shift -0.5 0 0
  531.   instprops wood
  532. end
  533.  
  534. instobj unit_box2
  535.   scale 0.05 0.05 1
  536.   shift 0.45 0 0
  537.   instprops wood
  538. end
  539.  
  540. polygon
  541. 4
  542. 0.5 -0.05 0.5
  543. -0.5 -0.05 0.5
  544. -0.5 -0.05 -0.5
  545. 0.5 -0.05 -0.5
  546. instprops grey
  547. /* props texture file filename */
  548. phexp 2000
  549. end
  550. end
  551.  
  552. end
  553.  
  554.  
  555.  
  556.  
  557. defobj television
  558.  
  559. instobj unit_box
  560.   instprops grey
  561. end
  562.  
  563. polyhedron
  564. {
  565. 0 0 0
  566. 0 0 0
  567. 1 0 0
  568. 1 0 1
  569. 0 0 1
  570. 0.8 -0.5 0.3
  571. 0.8 -0.5 0.7
  572. 0.2 -0.5 0.3
  573. 0.2 -0.5 0.7
  574. }
  575. {
  576. [5 6 2 3]
  577. [8 6 3 4]
  578. [7 8 4 1]
  579. [7 5 2 1]
  580. [5 6 8 7] 
  581. }
  582. instprops grey
  583. end
  584.  
  585.  
  586. polygon
  587. 4
  588. 0.1 1.0000001 0.1
  589. 0.9 1.0000001 0.1
  590. 0.9 1.0000001 0.9
  591. 0.1 1.0000001 0.9
  592. instprops grey
  593. /* props texture file filename */
  594. end
  595. end
  596.  
  597. end
  598.  
  599.  
  600.  
  601.  
  602. defobj railing
  603. instobj unit_box
  604. scale 0.2 0.2 3
  605. end
  606. end
  607.  
  608. defobj horizrail
  609. instobj unit_box
  610. scale 5 0.2 0.2
  611. end
  612. end
  613.  
  614. defobj railings
  615.  
  616. instobj railing
  617. shift 0 0 0.2
  618. instprops wood
  619. end
  620.  
  621. instobj railing
  622. shift 1 0 0.2
  623. instprops wood
  624. end
  625.  
  626. instobj railing
  627. shift 2 0 0.2
  628. instprops wood
  629. end
  630.  
  631. instobj railing
  632. shift 3 0 0.2
  633. instprops wood
  634. end
  635.  
  636. instobj railing
  637. shift 4 0 0.2
  638. instprops wood
  639. end
  640.  
  641. instobj railing
  642. shift 4.8 0 0.2
  643. instprops wood
  644. end
  645.  
  646. instobj horizrail
  647. instprops wood
  648. end
  649.  
  650. instobj horizrail
  651. shift 0 0 3
  652. instprops wood
  653. end
  654.  
  655. end
  656.  
  657. instobj railings
  658. scale 1.7 1.5 1.5
  659. shift 0 15 3
  660. instprops wood
  661. end
  662.  
  663. instobj railings
  664. scale 1.7 1.5 1.5
  665. shift 14 15 3
  666. instprops wood
  667. end
  668.  
  669.  
  670. instobj sqpicture
  671. scale 5 3 4
  672. shift 12 0.3 8
  673. end
  674.  
  675.  
  676. instobj
  677.   chair
  678.   name chair_i1
  679.  
  680. shift 15 4 0
  681. end
  682.  
  683. instobj
  684.   chair
  685.   name chair_i2
  686.   shift 0 3 0
  687. shift 15 4 0
  688. end
  689.  
  690.  
  691. instobj table
  692.  
  693. shift 15 4 0
  694. end
  695.  
  696. sphere 0 0 0 1
  697. props drc 0.498 0.6 0.8 end
  698. scale 1.5 1.5 0.1
  699. shift 10 8 2
  700.  
  701. end
  702.  
  703. instobj unit_box
  704. instprops darkwood
  705. scale 0.15 0.15 1.99
  706. shift 10 8 0
  707. end
  708.  
  709. instobj sofa
  710. rotate z 180
  711. shift 5 3 0 
  712. instprops purple
  713. end
  714.  
  715.  
  716.